<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>饱了么订餐系统</title>

<link rel="stylesheet" type="text/css" href="../files/styles.css">
<script type="text/javascript" src="../files/js/jquery.min.js"></script>
<script type="text/javascript" src="../files/js/jquery-1.10.2.js"></script>
<script type="text/javascript">
$(function(){
	
	
	$("#userLogin").click(function(){
		url = "../member/isLogin.action";
		datas = {
			memName : $("#memName").val(),
			memPwd : $("#memPwd").val(),
			introduce : $("#introduce").val()
		};
		$.ajax({
			asyn : true,
			type : "POST",
			url : url,
			data : datas,
			success : function(fh) {
				if(fh.msg == "0"){
					$("#loginTishi").text("账号或用户名错误");
				}else{
					setTimeout(function(){
						location.href = "../page/index.html";
					},200);
				}
			}
		});
	});
});
</script>
<style>
#loginTishi{
	
}

</style>
</head>
<body>
		<div style="height:30px;"></div>
		<div class="login-wrap">
			<div class="login-html">
				<input id="tab-1" type="radio" name="tab" class="sign-in" checked /><label for="tab-1" class="tab">登录</label>
				<input id="tab-2" type="radio" name="tab" class="sign-up" /><a href="../page/reg.html" id="tab-1" >注册</a>
				<div class="login-form">
					<div class="group">
						<label for="user" class="label">用户名</label>
						<input id="memName" name="memName" type="text" class="input" maxlength="15" required="required"/>
					</div>
					<div class="group">
						<label for="pass" class="label">密码</label>
						<input id="memPwd" name="memPwd" type="password" class="input" data-type="password" maxlength="20" required="required"/>
					</div>
					<div class="group">
						<input id="check" type="checkbox" class="check" checked />
						<label for="check"><span class="icon"></span> 记住密码</label>
					</div>
					<p id="loginTishi"></p>
					<div class="group">
						<input type="submit" class="button" value="登录" id="userLogin"  name="userLogin" />
					</div>
					<div class="hr"></div>
					<div class="foot-lnk">
						<a href="#forgot">忘记密码?</a>
					</div>
				</div>
			</div>
		</div>

</body>
</html>